import {userInfoStore} from "@/stores/counter.js";



export default {
    mounted(element, bindings) {
        // allowRoleList = ['admin','manager']
        let allowRoleList = bindings.value;

        let store = userInfoStore()
        if(allowRoleList.indexOf(store.userRole) === -1){
            element.parentNode && element.parentNode.removeChild(element);
        }else{
            //什么都不做，元素element显示页面
        }
    }
}